﻿using LPLS.DBEntities.DataCollectionModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBInterface.DataCollectionModels
{
    public  interface IDataCollectionRecordService : IDBBaseInterface
    {

        List<DataCollectionRecord> GetData();

        List<DataCollectionRecord> GetData(Guid Deviceid,Guid compentid);

        List<DataCollectionRecord> GetData(Guid deviceID);

        int AddData(DataCollectionRecord record);

        int UpdateData(DataCollectionRecord record);

        /// <summary>
        /// 按照take查询 用于采集后的数据分类
        /// </summary>
        /// <param name="take"></param>
        /// <returns></returns>
        List<DataCollectionRecord> GetData(int take);
        /// <summary>
        /// 更新数据  用于采集后将Iscollection数据更新掉
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        int UpdateData(List<int> ids);


    }
}
